package manage.model;

import m.common.model.FieldMeta;
import m.common.model.LinkTableMeta;
import m.common.model.Model;
import m.common.model.TableMeta;
import m.common.model.type.FieldType;

@TableMeta(name="os_server_request",description="服务请求记录表")
public class ServerRequest extends Model {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@LinkTableMeta(name="server_host_oid",table=ServerHost.class,notnull=true,description="所属服务主机")
	private ServerHost serverHost;

	@FieldMeta(name="context_path",type=FieldType.STRING,length=200,description="请求路径")
	private String contextPath;
	@FieldMeta(name="type",type=FieldType.STRING,length=10,description="类型|action,page,other, 超过10个长度设置空")
	private String type;
	@FieldMeta(name="suffix",type=FieldType.STRING,length=10,description="后缀|超过10个长度设置空")
	private String suffix;

	@FieldMeta(name="total",type=FieldType.INT,description="请求次数")
	private Integer total;//
	@FieldMeta(name="access_long",type=FieldType.DOUBLE,description="时长|单位秒")
	private Double accessLong;//
	@FieldMeta(name="avg_long",type=FieldType.DOUBLE,description="平均时长|单位秒")
	private Double avgLong;//

	public ServerHost getServerHost() {
		return serverHost;
	}

	public void setServerHost(ServerHost serverHost) {
		this.serverHost = serverHost;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getSuffix() {
		return suffix;
	}

	public void setSuffix(String suffix) {
		this.suffix = suffix;
	}

	public Double getAccessLong() {
		return accessLong;
	}

	public void setAccessLong(Double accessLong) {
		this.accessLong = accessLong;
	}

	public Double getAvgLong() {
		return avgLong;
	}

	public void setAvgLong(Double avgLong) {
		this.avgLong = avgLong;
	}

	public String getContextPath() {
		return contextPath;
	}

	public void setContextPath(String contextPath) {
		this.contextPath = contextPath;
	}

	public Integer getTotal() {
		return total;
	}

	public void setTotal(Integer total) {
		this.total = total;
	}
}
